﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Craw
{
    public class JobDTO
    {
        /* 任务名称 */
        private string name = "";

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        /* 任务的入口url */
        private string url = "";

        public string Url
        {
            get { return url; }
            set { url = value; }
        }

        /* 最大下载页面数 */
        private int limitPage = 0;

        public int LimitPage
        {
            get { return limitPage; }
            set { limitPage = value; }
        }

        /* 任务状态 */
        private JOBSTATUS status = JOBSTATUS.READY;

        public JOBSTATUS Status
        {
            get { return status; }
            set { status = value; }
        }

        /* 任务状态枚举 */
        public enum JOBSTATUS { READY = 100, RUNNING = 200, WAITING = 300, UNKNOW = 400};
    }
}
